<extend name='layout:index'/>
<block name='content'>
	<body>

    <div class="wrapper wrapper-content animated fadeInRight">
      <div class="row">
      <div class="tabs-container">
		   <ul class="nav nav-tabs text-center">
		       <li class="active"><a data-toggle="tab" href="#tab-1" aria-expanded="true" id="a_one" onclick="f1()" style="width: 300px; background-color: white"> 奖金明细</a>
		       </li>
		      
		   </ul>
      <div class="tab-content">
       <div id="tab-1" class="tab-pane active">
           <div class="panel-body">
           <div class="table-responsive">
				<table class="table table-bordered table-striped table-hover ">
					<thead>
						<tr>
							<th>奖金合计</th>
							<th>平衡奖</th>
							<th>交易奖</th>
							<th>管理奖</th>
							<th>销售奖</th>
							<th>服务奖</th>
						</tr>
						</thead>
						<tbody>
						<tr>
							<td>{$sum}</td>
							<td>{$sumMoney.pay_points2}</td>
							<td>{$sumMoney.pay_points4}</td>
							<td>{$sumMoney.pay_points3}</td>
							<td>{$sumMoney.pay_points1}</td>
							<td>{$sumMoney.pay_points5}</td>
						</tr>
				</tbody>
				</table>
				</div>

           		<div class="ibox-content">
  			<form role="form" class="form-inline" action="__URL__/cash" method="get" name="theForm" id="theForm">
		                <div class="form-group" style='margin-left:15px'>
		                    <label for="" class="" >开始时间：</label>
		                    <input placeholder="请输入开始时间" name="start" id="start" class="form-control" type="text">

		                </div>
		                <div class="form-group" style='margin-left:15px'>
		                    <label for="" class="">结束时间</label>
		                    <input placeholder="请输入结束时间" name="end" id="end" class="form-control" type="text">
		                </div>
		                <div class="form-group" style='margin-left:135px'>
		               
		                    <select class="selectpicker show-tick form-control" style='width:250px' name="cashtype" >
		                            <option value="0" >全部奖</option>
		                            <option value="1" <if condition='$type eq 1'> selected </if> >平衡奖</option>
		                            <option value="2" <if condition='$type eq 2'> selected </if> >交易奖</option>
		                             <option value="3" <if condition='$type eq 3'> selected </if> >管理奖</option>
		                            <option value="4" <if condition='$type eq 4'> selected </if> >销售奖</option>
		                            <option value="5"  <if condition='$type eq 5'> selected </if> >服务奖</option>		                            
		                    </select>
		                  
		                </div>
                			<input type="submit" style='width:70px;height:32px;margin-left:15px' value='搜索'>
            </form>
		     </div>

		           	<div class="table-responsive">
							<table class="table table-bordered table-striped table-hover">
								<thead>
									<tr>
										<th>奖金类型</th>
										<th>详细说明</th>
										<th>金额($)</th>
										<th>时间</th>
									</tr>
								</thead>
									
									<tbody>	
					<foreach name='cash' item='vo'>					 							 								                                                                                        
					
					
						<if condition='$vo.pay_points2 neq 0'>
							<tr>	
								<td>平衡奖
								</td>
                             <td>{$vo.change_desc}</td>
                             <td>{$vo.pay_points2}</td>
                           <td><?php echo date('Y-m-d H:i:s',$vo['change_time']) ?></td>
								</tr>  

						<elseif condition='$vo.pay_points4 neq 0' />
								<tr>
								<td>交易奖
								</td>
                             <td>{$vo.change_desc}</td>
                             <td>{$vo.pay_points4}</td>
                            <td><?php echo date('Y-m-d H:i:s',$vo['change_time']) ?></td>
								</tr>
						
						<elseif condition='$vo.pay_points3 neq 0' />                                                           		<tr>
								<td>管理奖
								</td>
                            <td>{$vo.change_desc}</td>
                             <td>{$vo.pay_points3}</td>
                           <td><?php echo date('Y-m-d H:i:s',$vo['change_time']) ?></td>
								</tr>
						<elseif condition='$vo.pay_points1 neq 0' />
								<tr>
								<td>销售奖
								</td>
                            <td>{$vo.change_desc}</td>
                             <td>{$vo.pay_points1}</td>
                           <td><?php echo date('Y-m-d H:i:s',$vo['change_time']) ?></td>
								</tr>
						<elseif condition='$vo.pay_points5 neq 0' />
								<tr>
								<td>服务奖
								</td>
                            <td>{$vo.change_desc}</td>
                             <td>{$vo.pay_points5}</td>
                             <td><?php echo date('Y-m-d H:i:s',$vo['change_time']) ?></td>
								</tr>
							</if>
						</foreach>                               														</tbody>
							</table>
						</div>
						<div class="">
<form name="selectPageForm" action="/ELT/zx70/rp_user.php" method="get">


 <div id="pager">
  <span style="margin-right:10px;">总计 <b>{$page_num}</b>  个记录</span>
      <div style='float:right;margin-right:50px' >{$url}</div>
      </div>


</form>
<script type="Text/Javascript" language="JavaScript">

   
</script>
<script src="__PUBLIC__/home/js/plugins/layer/laydate/laydate.js"></script>
<script>
laydate.skin('molv');
laydate({
  elem: '#start', //目标元素。由于laydate.js封装了一个轻量级的选择器引擎，因此elem还允许你传入class、tag但必须按照这种方式 '#id .class'
  event: 'focus' //响应事件。如果没有传入event，则按照默认的click
});

laydate({
  elem: '#end', //目标元素。由于laydate.js封装了一个轻量级的选择器引擎，因此elem还允许你传入class、tag但必须按照这种方式 '#id .class'
  event: 'focus' //响应事件。如果没有传入event，则按照默认的click
});

</script>



</body>
</block>